package com.hotel.service.impl;

import com.hotel.domain.Food;
import com.hotel.mapper.FoodMapper;
import com.hotel.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.stream.events.EndDocument;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * @author shenlei
 * @describ
 * @create 2020-12-08 21:08
 */
@Service
public class FoodServiceImpl implements FoodService {

    @Autowired
    FoodMapper foodMapper;

    @Override
    public List<Food> findAllFood() {

        return foodMapper.findAllFood();
    }

    @Override
    public void saveFoodOrder(Food food) {

        foodMapper.saveFoodOrder(food);

    }
}
